package com.thinkpadteam.edugra.fragmentsekolah;

import java.util.ArrayList;

import com.thinkpadteam.edugra.fragmentmakan.LayoutMakan;
import com.thinkpadteam.edugra.gridview.ImageItem;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.sax.RootElement;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class ViewPagerAdapterSekolah extends FragmentPagerAdapter {
//	private Context _context;
//	private String[] imgName;
	final int PAGE_COUNT = 14;
	public ViewPagerAdapterSekolah(FragmentManager fm) {
		super(fm);	
		
		}
	@Override
	public Fragment getItem(int position) {		
		LayoutMakan myFragment = new LayoutMakan();
		Bundle data = new Bundle();
		data.putInt("current_page", position+1);
		myFragment.setArguments(data);
		return myFragment;				
	}
	
    
	@Override
	public int getCount() {
		return PAGE_COUNT;
	}
//	@Override
//	public CharSequence getPageTitle(int position) {		
//		return "Page #" + ( position + 1 );
//	}	
//
	

	
}
